/**
 * @(#) DispatcherCmdDefine.java 
 */

package com.springcloud.sc.ucpv5.client.common;

/**
 * Comments : 12-8
 */

public class CmdDefine {
	/**
	 * 通讯握手消息头命令码
	 */
	public final static int CMD_COMMUNICATION_SHAKEHAND = 5001;

	/** 登录、注消 **/
	public static final int CMD_User_Login = 1000;
	public static final int CMD_User_Logout = 1001;
	public static final int CMD_User_Login_regcheck = 1002;

	// 20180102 增加md5判断, 服务器新版本支持
	// 发送登录命令, 获取随机数
	public static final int CMD_User_Login_md5 = 1003;
	// 发送登录命令, 密码为md5
	public static final int CMD_User_Login_md5_check = 1004;

	/** 拓扑节点 **/
	public static final int CMD_NODE_ADD = 1101;
	public static final int CMD_NODE_Modify = 1102;
	public static final int CMD_NODE_Del = 1103;
	public static final int CMD_NODE_Query_List = 1104;
	public static final int CMD_NODE_Query_Status = 1105;
	/*** End *****************/

	/** 营账 **/
	public static final int CMD_DATA_MGR_START = 2000;

	public static final int CMD_User_Add = CMD_DATA_MGR_START + 1;// 开户
	public static final int CMD_User_Del = CMD_DATA_MGR_START + 2;// 销户
	public static final int CMD_User_Stop_Service = CMD_DATA_MGR_START + 3;
	public static final int CMD_User_Resume_Service = CMD_DATA_MGR_START + 4;
	public static final int CMD_User_Modify = CMD_DATA_MGR_START + 5;
	public static final int CMD_User_Query_List = CMD_DATA_MGR_START + 6;
	public static final int CMD_User_Query_Info = CMD_DATA_MGR_START + 7;
	public static final int CMD_User_AUTH_NODE_LIST = CMD_DATA_MGR_START + 8;

	public static final int CMD_User_Change_Password = CMD_DATA_MGR_START + 9;

	public static final int CMD_User_机卡解除绑定 = CMD_DATA_MGR_START + 10;

	// 用户查询中,增加命令根据关键信息查询用户列表, 异步返回 20160315 wsy
	public static final int CMD_User_Query_Info_detail = CMD_DATA_MGR_START + 11;

	public static final int CMD_Group_Add = CMD_DATA_MGR_START + 101;
	public static final int CMD_Group_Modify = CMD_DATA_MGR_START + 102;
	public static final int CMD_Group_Del = CMD_DATA_MGR_START + 103;
	public static final int CMD_Group_Query_List = CMD_DATA_MGR_START + 104;
	public static final int CMD_Group_Query_Status = CMD_DATA_MGR_START + 105;
	public static final int CMD_Group_Query_Mermber_Status = CMD_DATA_MGR_START + 106;
	// 视频状态
	public static final int CMD_Group_Query_Media_Status = CMD_DATA_MGR_START + 107;

	// 用户数据变更通知消息
	public static final int CMD_DataChange_Info = CMD_DATA_MGR_START + 108;

	// 查询组下子组命令
	public static final int CMD_Group_Query_List_SubGroup = CMD_DATA_MGR_START + 110;

	// 根据组号码,查询组状态
	public static final int CMD_Group_Query_Status_Single = CMD_DATA_MGR_START + 111;

	// 根据用户视频状态, 在查组信息时上报,带所有子通道信息
	public static final int CMD_Group_Query_Media_Status_All = CMD_DATA_MGR_START + 112;

	// 查询节点内所有组的在线数目和组用户总数
	public static final int CMD_Group_Query_UserOnLine_UserAllSize = CMD_DATA_MGR_START + 113;

	// 查询用户状态信息(包括离线,在线)
	public static final int CMD_User_Query_Status = CMD_DATA_MGR_START + 114;

	// 成员分配中,组增加命令 20160315 wsy
	public static final int CMD_Join_Group_Group_Add = CMD_DATA_MGR_START + 115;
	// 成员分配中,组删除命令 20160315 wsy
	public static final int CMD_Join_Group_Group_Del = CMD_DATA_MGR_START + 116;

	// 根据组号码,查询组基本信息, 20181116
	public static final int CMD_Group_Query_Single = CMD_DATA_MGR_START + 117;

	public static final int CMD_Join_Group = CMD_DATA_MGR_START + 201;
	public static final int CMD_Leave_Group = CMD_DATA_MGR_START + 202;
	public static final int CMD_Load_User_Group_Table = CMD_DATA_MGR_START + 203;

	// 会议开始
	public static final int CMD_Meeting_Begin = CMD_DATA_MGR_START + 204;
	// 申请新的会议组
	public static final int CMD_Meeting_Group_Requst = CMD_DATA_MGR_START + 205;
	// 会议结束
	public static final int CMD_Meeting_End = CMD_DATA_MGR_START + 206;

	// 查询组用户列表
	public static final int CMD_Query_Group_User = CMD_DATA_MGR_START + 207;

	// 统计查询 查询组用户列表, 只返回用户号码
	public static final int CMD_Query_Group_User_Simple = CMD_DATA_MGR_START + 209;
	// 统计查询 查询组用户状态, 只返回在线用户状态
	public static final int CMD_Group_Query_Mermber_Status_Simple = CMD_DATA_MGR_START + 210;

	// 查询所属用户的组列表
	public static final int CMD_Query_Group_List_By_OwnUser = CMD_DATA_MGR_START + 208;

	// 国标设备查询
	public static final int CMD_Query_国标设备 = CMD_DATA_MGR_START + 211;

	public static final int CMD_Video_Add = CMD_DATA_MGR_START + 301;
	public static final int CMD_Video_Modify = CMD_DATA_MGR_START + 302;
	public static final int CMD_Video_Del = CMD_DATA_MGR_START + 303;
	public static final int CMD_Video_Query_List = CMD_DATA_MGR_START + 304;

	public static final int CMD_Gps_CurrentQuery = 2401;
	public static final int CMD_Gps_MileageClear = 2402;
	public static final int CMD_Gps_QueryBaseInfo = 2403;
	public static final int CMD_Gps_MileageSet = 2404;

	// /调度台系统中短信调度命令相关的命令码分段的起始值
	public static final int MESSAGECODE_CMD_CODE_START = 2500;
	// 查询调度命令
	public static final int MESSAGECODE_CMD_CODE_QUERY = (MESSAGECODE_CMD_CODE_START + 1);
	// 操作调度命令
	public static final int MESSAGECODE_CMD_CODE_EDIT = (MESSAGECODE_CMD_CODE_START + 2);

	// 查询调度命令
	public static final int MESSAGECODE_CMD_CODE_QUERY_All_MESSAGE = (MESSAGECODE_CMD_CODE_START + 3);

	// add yzl 增加查询微信消息名命令码
	public static final int MESSAGECODE_CMD_CODE_QUERY_WEIXIN_MESSAGE = (MESSAGECODE_CMD_CODE_START + 4);

	// /调度台系统中角色调度命令相关的命令码分段的起始值
	public static final int ROLE_CODE_CMD_CODE_START = 2510;
	// 查询角色命令
	public static final int ROLE_CODE_CMD_CODE_QUERY = (ROLE_CODE_CMD_CODE_START + 1);
	// 操作角色命令
	public static final int ROLE_CODE_CMD_CODE_EDIT = (ROLE_CODE_CMD_CODE_START + 2);

	// 调度台查询呼叫历史记录
	public static final int CALLHISTORY_CODE_CMD_CODE_START = 2520;
	// 查询角色命令
	public static final int CALLHISTORY_CODE_CMD_CODE_QUERY = (CALLHISTORY_CODE_CMD_CODE_START + 0);

	public static final int CALLHISTORY_CODE_CMD_CODE_QUERY_Idl = (CALLHISTORY_CODE_CMD_CODE_START + 5);

	// 调度台预案起始值
	public static final int PLAN_CODE_CMD_CODE_START = 2530;
	// 调度台查询(预案)
	public static final int PLAN_CODE_CMD_CODE_QUERY = (PLAN_CODE_CMD_CODE_START + 0);
	// 预案操作命令
	public static final int PLAN_CODE_CMD_CODE_OPER = (PLAN_CODE_CMD_CODE_START + 1);

	/*** End *****************/

	// /调度台系统中和SXC相关的命令码分段的起始值
	public static final int SXC_CMD_CODE_START = 3000;

	// 注册消息，前台->ACC的同步消息命令,ACC->SIPUA的请求命令,SIPUA->ACC的响应命令
	public static final int SXC_REGISTER_MSG = (SXC_CMD_CODE_START + 1);

	// 注销消息，ACC->SIPUA的通知命令
	public static final int SXC_DEREGISTER_MSG = (SXC_CMD_CODE_START + 2);

	// 调度台主叫请求消息，前台->ACC的同步消息命令,ACC->SIPUA的请求命令,SIPUA->ACC的响应命令
	public static final int SXC_PPT_SETUP_MSG = (SXC_CMD_CODE_START + 3);

	// 调度台主叫连接通知消息，SIPUA->ACC,ACC->CLIENT
	public static final int SXC_PPT_CONNECT_MSG = (SXC_CMD_CODE_START + 4);

	// 调度台主叫连接通知消息，SIPUA->ACC,ACC->CLIENT wsy 20160317
	public static final int SXC_PPT_CONNECT_MSG_Ack = (SXC_CMD_CODE_START + SXC_PPT_CONNECT_MSG);

	// 被叫寻呼通知消息，SIPUA->ACC,ACC->CLIENT
	public static final int SXC_PAGING_INFO_MSG = SXC_PPT_SETUP_MSG;

	// 被叫连接通知消息，CLIENT->ACC,ACC->SIPUA,
	public static final int SXC_PAGING_CONNECT_MSG = SXC_PPT_CONNECT_MSG;

	// 组呼讲话方信息显示消息，SIPUA->ACC,ACC->CLIENT
	public static final int SXC_SAYING_INFO_MSG = (SXC_CMD_CODE_START + 7);

	// 讲话申请消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_SPEAK_APPLY_MSG = (SXC_CMD_CODE_START + 8);

	// 组呼讲话提示通知消息，SIPUA->ACC,ACC->CLIENT
	public static final int SXC_SPEAK_INFO_MSG = (SXC_CMD_CODE_START + 9);

	// 话权终止，话权取消
	public static final int SXC_SPEAK_STOP_MSG = (SXC_CMD_CODE_START + 10);

	// 主动释放呼叫，被动释放呼叫
	public static final int SXC_CALL_STOP_MSG = (SXC_CMD_CODE_START + 11);

	// 强插消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_FORCE_INSERT_MSG = (SXC_CMD_CODE_START + 13);

	// 播音通知消息，CLIENT->ACC,ACC->SIPUA,
	public static final int SXC_PLAY_RECORD_MSG = (SXC_CMD_CODE_START + 14);

	// information消息,用于修改媒体
	public static final int SXC_INFORMATION_MSG = (SXC_CMD_CODE_START + 16);
	// ACK
	public static final int SXC_INFORMATION_ACK_MSG = (SXC_CMD_CODE_START + 19);

	// 振铃消息
	public static final int SXC_RING_MSG = (SXC_CMD_CODE_START + 17);

	// 周期注册失败消息
	public static final int SXC_RP_REGISTER_MSG = (SXC_CMD_CODE_START + 18);
	// 授权呼叫
	public static final int SXC_AUTH_CALL_MSG = (SXC_CMD_CODE_START + 20);

	// 授权呼叫
	public static final int SXC_WAIT_SPEEK_APPLY_MSG = (SXC_CMD_CODE_START + 21);

	// 强拆消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_FORCE_STOP_USER_MSG = (SXC_CMD_CODE_START + 22);
	// 强拆消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_FORCE_STOP_GROUP_MSG = (SXC_CMD_CODE_START + 23);

	// 强拆组用户消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_FORCE_STOP_GROUP_USER_NO = (SXC_CMD_CODE_START + 26);

	// 强插组呼用户消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	public static final int SXC_FORCE_INSERT_GROUP_NO = (SXC_CMD_CODE_START + 27);

	public static final int SXC_PPT_SETUP_MSG_LINK_CALL = (SXC_CMD_CODE_START + 28);

	// 用于会议消息追加
	public static final int SXC_INFORMATION_MEETING_APPAND = (SXC_CMD_CODE_START + 29);

	// 用于短消息发送
	public static final int SXC_MESSAGE_SEND = (SXC_CMD_CODE_START + 30);

	// 申请话筒
	public static final int SXC_MEDIA_MEETINT_HUATONG_REQUEST = (SXC_CMD_CODE_START + 31);
	// 释放话筒
	public static final int SXC_MEDIA_MEETINT_HUATONG_RELEASE = (SXC_CMD_CODE_START + 32);
	// 授予话筒
	public static final int SXC_MEDIA_MEETINT_HUATONG_PUT = (SXC_CMD_CODE_START + 33);
	// 收回话筒
	public static final int SXC_MEDIA_MEETINT_HUATONG_GET = (SXC_CMD_CODE_START + 34);
	// 主席授权
	public static final int SXC_MEDIA_MEETINT_ZHUXI_PUT = (SXC_CMD_CODE_START + 35);
	// 主席授权响应
	public static final int SXC_MEDIA_MEETINT_ZHUXI_PUT_RSP = (SXC_CMD_CODE_START + 36);
	// 删除会议成员
	public static final int SXC_MEDIA_MEETINT_CHENGYUAN_DEL = (SXC_CMD_CODE_START + 37);

	// 缜密监听
	public static final int SXC_LISTEN = (SXC_CMD_CODE_START + 38);
	// 环境侦听
	public static final int SXC_LISTEN_ENV = (SXC_CMD_CODE_START + 39);
	// 处理组呼录音
	public static final int SXC_GROUP_RECORD = (SXC_CMD_CODE_START + 40);
	// 20171107 yq 山东电力排队机 呼叫转接
	public static final int SXC_MEDIA_CALL_TRANS = (SXC_CMD_CODE_START + 41);

	// 20171107 wsy 呼叫保存
	public static final int SXC_MEDIA_CALL_HOLDE = (SXC_CMD_CODE_START + 42);
	// 20171107 wsy 呼叫激活
	public static final int SXC_MEDIA_CALL_ACTIVE = (SXC_CMD_CODE_START + 43);

	// 强插消息，CLIENT->ACC,ACC->SIPUA,SIPUA->ACC
	// public static final int SXC_FORCE_INSERT_MSG = ( SXC_CMD_CODE_START + 22
	// );
	// <!--下面定义命令码，实际上并不用，只是用来辅助记录日志-->\
	public static final int SCX_CMD_接听来电 = 3987;
	public static final int SCX_CMD_拒绝授权呼叫 = 3988;
	public static final int SCX_CMD_拍叉前转 = 3989;
	public static final int SCX_CMD_同意授权呼叫 = 3990;
	public static final int SCX_CMD_话权排队 = 3991;
	public static final int SCX_CMD_被用户强插 = 3992;
	public static final int SCX_CMD_被用户强拆 = 3993;
	public static final int SCX_CMD_缜密监听 = 3994;
	public static final int SCX_CMD_呼叫联动话机 = 3995;
	public static final int SCX_CMD_挂断联动话机 = 3996;
	public static final int SCX_CMD_初始注册 = 3997;
	public static final int SCX_CMD_拒听来电 = 3999;

	// /调度台系统中只是前后台相关的命令码分段的起始值
	public static final int DISP_CMD_CODE_START = 3000;

	// 查询FTP信息
	public static final int DISP_GET_FTPINFO_MSG = (DISP_CMD_CODE_START + 1);

	// 记录日志信息
	public static final int DISP_WRITE_LOG_MSG = (DISP_CMD_CODE_START + 2);

	// 创建查询日志任务
	public static final int DISP_CREATE_LOG_QRY = (DISP_CMD_CODE_START + 3);

	// 查询下一页日志;
	public static final int DISP_QRY_NEXT_LOG = (DISP_CMD_CODE_START + 4);

	// 终止查询日志任务
	public static final int DISP_END_LOG_QRY = (DISP_CMD_CODE_START + 5);

	// 记录录音信息
	public static final int DISP_WRITE_RECORD_MSG = (DISP_CMD_CODE_START + 6);

	// 创建查询录音任务
	public static final int DISP_CREATE_RECORD_QRY = (DISP_CMD_CODE_START + 7);

	// 查询下一页录音
	public static final int DISP_QRY_NEXT_RECORD = (DISP_CMD_CODE_START + 8);

	// 终止查询录音任务
	public static final int DISP_END_RECORD_QRY = (DISP_CMD_CODE_START + 9);
    
    // JSON 格式交互命令吗定义开始
    public static final int 查询28181设备子列表命令 = 6000;

}
